package com.company.xiancheng;

public class XCDemo {
    public static void main(String[] args) throws InterruptedException {
        Person person = new Person();
        Thread t1 = new Thread(){
            @Override
            public void run(){
                person.m1(3);
                System.out.println(person.val+"==");
            }
        };
        Thread t2 = new Thread(){
            @Override
            public void run(){
                person.m1(6);
                System.out.println(person.val+"++");
            }
        };
        t1.start();

        t2.start();
    }
}
